package com.example.demo.mapper;

import com.example.demo.entity.Wish;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WishMapper {

    public List<Wish> getWishsByUserId(Integer uid);
    @Select(" SELECT * FROM wish where id=#{uid} ")
    public Wish getWishsById(Integer uid);

    public void add(Wish wish);
}
